home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
diskmags
/
0022-3.564
/
dmg-3421
/
gfa_basi.c
/
gfademo.txt
/
gfademo.txt
Wrap
Text File
|
1997-06-21
|
4KB
|
138 lines
SMALL GFA DEMO
Super small gfa demo...
This is a very small GFA demo, but it works good and the effect is
really nice. The hole screen scrolls very smooth horizontal with a
picture of your own. You can use this program in low or in medium
resolution. In the line INLINE bild%,32034 you can put you picture
made in Degas (Elite) or Neo Master (store it as an PI1 picture).
You can do this by using the routine that has the REM marks (') for
the lines. By removing them the routine to read a picture is acctivated.
You only have to do this once because the picture will stay in the INLINE
so after you run the program once, you can delete the lines or put an '
sign for it again...
Enjoy yourself with it, on this disk in the folder G_F_A_PROGS the
program stand under the nam GFADEMO.LST. Read it in in any GFA basic
version 3.xx and up...
Bonus Software
INLINE bild%,32034
RESERVE 400000 ! RESERVE MEMORY FOR SCREENS
'
' FILESELECT "A:\PICTURES\*.PI1","",A$ ! USE FILESELECTOR TO CHOOSE
' IF A$<>"" ! IF A$ ISN'T EMPTY
' BLOAD A$,BILD% ! LOAD PICTURE TO BILD%
' ENDIF ! END
'
VOID XBIOS(6,L:bild%+2) ! set up colors
DIM a%((32000*10+255)/4) ! make space for screens
a%=VARPTR(a%(0))+255 AND &HFFFF00 ! start address
BMOVE bild%+34,a%,32000 ! picture in screen 1
BMOVE bild%+34,a%+32000,32000 ! " " " 2
BMOVE bild%+34,a%+32000*2+160*2,32000 ! "
BMOVE bild%+34,a%+32000*3+160*2,32000 ! "
BMOVE bild%+34,a%+32000*4+160*4,32000 ! "
BMOVE bild%+34,a%+32000*5+160*4,32000 ! "
BMOVE bild%+34,a%+32000*6+160*6,32000 ! "
BMOVE bild%+34,a%+32000*7+160*6,32000 ! picture in screen 8
REPEAT !
FOR b%=a% TO a%+32000-1280 STEP 1280
VOID XBIOS(5,L:-1,L:b%+32000*6,-1) ! swap screen
VSYNC ! synchronisation
color ! gosub to color proc
VOID XBIOS(5,L:-1,L:b%+32000*4,-1)
VSYNC
color
VOID XBIOS(5,L:-1,L:b%+32000*2,-1)
VSYNC
color
VOID XBIOS(5,L:-1,L:b%,-1)
VSYNC
color
NEXT b%
UNTIL MOUSEK<>0 !keep on swapping till mousekey
VOID XBIOS(5,L:-1,L:XBIOS(3),-1) !return to real screen...
RESERVE !GIVE MEMORY FREE AGAIN
PROCEDURE color ! color proc
SETCOLOR 0,0,0,0 ! the one that makes the raster
SETCOLOR 0,1,0,0 ! colors...
SETCOLOR 0,2,0,0
SETCOLOR 0,3,0,0
SETCOLOR 0,4,0,0
SETCOLOR 0,5,0,0
SETCOLOR 0,6,0,0
SETCOLOR 0,7,0,0
SETCOLOR 0,7,1,0
SETCOLOR 0,7,2,0
SETCOLOR 0,7,3,0
SETCOLOR 0,7,4,0
SETCOLOR 0,7,5,0
SETCOLOR 0,7,6,0
SETCOLOR 0,7,7,0
SETCOLOR 0,7,7,1
SETCOLOR 0,7,7,2
SETCOLOR 0,7,7,3
SETCOLOR 0,7,7,4
SETCOLOR 0,7,7,5
SETCOLOR 0,7,7,6
SETCOLOR 0,7,7,7
SETCOLOR 0,6,7,7
SETCOLOR 0,5,7,7
SETCOLOR 0,4,7,7
SETCOLOR 0,3,7,7
SETCOLOR 0,2,7,7
SETCOLOR 0,1,7,7
SETCOLOR 0,0,7,7
SETCOLOR 0,0,6,7
SETCOLOR 0,0,5,7
SETCOLOR 0,0,4,7
SETCOLOR 0,0,3,7
SETCOLOR 0,0,2,7
SETCOLOR 0,0,1,7
SETCOLOR 0,0,0,7
SETCOLOR 0,0,0,6
SETCOLOR 0,0,0,5
SETCOLOR 0,0,0,4
SETCOLOR 0,0,0,3
SETCOLOR 0,0,0,2
SETCOLOR 0,0,0,1
SETCOLOR 0,0,0,0
SETCOLOR 0,1,0,0
SETCOLOR 0,2,0,0
SETCOLOR 0,3,0,0
SETCOLOR 0,4,0,0
SETCOLOR 0,5,0,0
SET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